package com.etone.smartAudit.dto.projectFile;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@ApiModel(value = "项目文件管理")
public class ProjectFileDTO {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id 主键id")
    @TableId(value = "intId", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "文件名称")
    @TableField("vcFileName")
    private String fileName;

    @ApiModelProperty(value = "文件类型 0-文件夹，1-文件")
    @TableField("intType")
    private Integer type;

    @ApiModelProperty(value = "文件大小")
    @TableField("douSize")
    private Integer size;

    @ApiModelProperty(value = "文件路径 文件所在的位置")
    @TableField("vcPath")
    private String path;

    @ApiModelProperty(value = "文件全路径")
    @TableField("vcAllPath")
    private String allPath;

    @ApiModelProperty(value = "文件扩展名 文件后缀")
    @TableField("vcExtName")
    private String extName;

    @ApiModelProperty(value = "文件哈希值")
    @TableField("vcHash")
    private String hash;

    @ApiModelProperty(value = "所属项目id 冗余记录给文件所属于的顶级项目（便于后续统计项目下的文件）")
    @TableField("intProjectId")
    private Integer projectId;

    @ApiModelProperty(value = "是否是个人文件 0-非私人文件，1-私人文件")
    @TableField("bIsPrivate")
    private Integer isPrivate;

    @ApiModelProperty(value = "父级id 0-为顶级文件,其他为父级id")
    @TableField("intPid")
    private Integer pid;

}
